/**
 * related to selectAreaTemplate.ui
 * 
 * @Author : chenglm
 * @Timestamp : 2016-07-22
 */
var root = ui("$");
var isChecked = ui("isChecked");
var checkName = ui("checkName")
//设置数据绑定的映射关系
root.setMapping({
	"checkName.text":"checkName",
	"isChecked.visible":"isChecked"
});

root.on("dataRefreshed", function(){
	if(isChecked.visible){
		checkName.border="ff5305FF,1,0"
	}
	else{
		checkName.border="dfe2e6FF,1,0"
	}
});